{include file="main/main_common_main_top.tpl"}

<div class="leftcolumn">
{include file="common/common_leftcolumn.tpl"}
</div>

<div class="maincolumn bgs_news">
{if $CONTENT.mainpart == 'item'}
{include file="main/blocks/main_block_news_item_detail.tpl"}

{if $CONTEXT.permission.listcomment == 1}
{include file="main/blocks/main_block_news_item_listcomment.tpl"}
{/if}

{if $CONTEXT.permission.addcomment == 1}
{include file="main/blocks/main_block_news_item_addcomment.tpl"}
{/if}

{else}
{include file="main/blocks/main_block_news_item_listitem.tpl"}

{/if}
</div>